package com.ruoyi.project.modules.processBranchConditionDetail.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 分支条件明细对象 t_process_branch_condition_detail
 * 
 * @author smallrain
 * @date 2022-04-02
 */
public class ProcessBranchConditionDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 分支条件明细ID */
    private Long branchConditionDetailId;

    /** 分支条件ID */
    @Excel(name = "分支条件ID")
    private Long branchConditionId;

    /** 字段ID/数据集ID/数据集字段id */
    @Excel(name = "字段ID/数据集ID/数据集字段id")
    private Long objectId;
    private List<Long> objectIds;

    /** 对象类型（1-字段，2-数据集，3-数据集字段） */
    @Excel(name = "对象类型", readConverterExp = "1=-字段，2-数据集，3-数据集字段")
    private String objectType;

    /**
     * 数据集id，当对象类型为3 时，必填
     */
    private Long paramsId;
    private List<Long> paramsIds;

    private String objectName;

    private String objectFieldName;

    private Long interfaceId;

    private String interfaceName;

    private Long objectProcessBranchId;

    /** 分支条件模式字典数据ID (1-字段 2-数据集条数) */
    @Excel(name = "分支条件模式字典数据ID (1-字段 2-数据集条数)")
    private String branchConditionDetailDictCode;

    /** 分支条件字典数据分组(1-组1 .. n-组n) */
    @Excel(name = "分支条件字典数据分组(1-组1 .. n-组n)")
    private String branchConditionGroupId;

    /** 对象分类（1-字段，2-数据集） */
    @Excel(name = "对象分类", readConverterExp = "1=-字段，2-数据集")
    private String objectCategory;

    /** 判断条件字典 */
    @Excel(name = "判断条件字典")
    private String judgeConditionDictCode;

    /** 约定值 */
    @Excel(name = "约定值")
    private String contractValue;

    /** 流程分支ID */
    @Excel(name = "流程分支ID")
    private Long processBranchId;

    /** 接口ID */
    @Excel(name = "接口ID")
    private Long branchInterfaceId;

    /** 排序 */
    @Excel(name = "排序")
    private Long sortNum;

    /**
     * and / or
     */
    private String joinCondition;

    private Long fieldId;
    private String fieldName;
    private String fieldEnName;
    private String tableName;
    private String tableEnName;
    private String isFieldEnum;

    private String dictName;
    private String contractDictCategory;
    private String contractDictType;

    public List<Long> getObjectIds() {
        return objectIds;
    }

    public void setObjectIds(List<Long> objectIds) {
        this.objectIds = objectIds;
    }

    public List<Long> getParamsIds() {
        return paramsIds;
    }

    public void setParamsIds(List<Long> paramsIds) {
        this.paramsIds = paramsIds;
    }

    public String getContractDictCategory() {
        return contractDictCategory;
    }

    public void setContractDictCategory(String contractDictCategory) {
        this.contractDictCategory = contractDictCategory;
    }

    public String getContractDictType() {
        return contractDictType;
    }

    public void setContractDictType(String contractDictType) {
        this.contractDictType = contractDictType;
    }

    public String getDictName() {
        return dictName;
    }

    public void setDictName(String dictName) {
        this.dictName = dictName;
    }

    public Long getParamsId() {
        return paramsId;
    }

    public void setParamsId(Long paramsId) {
        this.paramsId = paramsId;
    }

    public String getIsFieldEnum() {
        return isFieldEnum;
    }

    public void setIsFieldEnum(String isFieldEnum) {
        this.isFieldEnum = isFieldEnum;
    }

    public Long getFieldId() {
        return fieldId;
    }

    public void setFieldId(Long fieldId) {
        this.fieldId = fieldId;
    }

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public String getFieldEnName() {
        return fieldEnName;
    }

    public void setFieldEnName(String fieldEnName) {
        this.fieldEnName = fieldEnName;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getTableEnName() {
        return tableEnName;
    }

    public void setTableEnName(String tableEnName) {
        this.tableEnName = tableEnName;
    }

    public Long getInterfaceId() {
        return interfaceId;
    }

    public void setInterfaceId(Long interfaceId) {
        this.interfaceId = interfaceId;
    }

    public Long getObjectProcessBranchId() {
        return objectProcessBranchId;
    }

    public void setObjectProcessBranchId(Long objectProcessBranchId) {
        this.objectProcessBranchId = objectProcessBranchId;
    }

    public String getInterfaceName() {
        return interfaceName;
    }

    public void setInterfaceName(String interfaceName) {
        this.interfaceName = interfaceName;
    }

    public String getObjectName() {
        return objectName;
    }

    public void setObjectName(String objectName) {
        this.objectName = objectName;
    }

    public String getObjectFieldName() {
        return objectFieldName;
    }

    public void setObjectFieldName(String objectFieldName) {
        this.objectFieldName = objectFieldName;
    }

    public String getJoinCondition() {
        return joinCondition;
    }

    public void setJoinCondition(String joinCondition) {
        this.joinCondition = joinCondition;
    }

    public void setBranchConditionDetailId(Long branchConditionDetailId)
    {
        this.branchConditionDetailId = branchConditionDetailId;
    }

    public Long getBranchConditionDetailId() 
    {
        return branchConditionDetailId;
    }
    public void setBranchConditionId(Long branchConditionId) 
    {
        this.branchConditionId = branchConditionId;
    }

    public Long getBranchConditionId() 
    {
        return branchConditionId;
    }
    public void setObjectId(Long objectId) 
    {
        this.objectId = objectId;
    }

    public Long getObjectId() 
    {
        return objectId;
    }
    public void setObjectType(String objectType) 
    {
        this.objectType = objectType;
    }

    public String getObjectType() 
    {
        return objectType;
    }
    public void setBranchConditionDetailDictCode(String branchConditionDetailDictCode) 
    {
        this.branchConditionDetailDictCode = branchConditionDetailDictCode;
    }

    public String getBranchConditionDetailDictCode() 
    {
        return branchConditionDetailDictCode;
    }
    public void setBranchConditionGroupId(String branchConditionGroupId) 
    {
        this.branchConditionGroupId = branchConditionGroupId;
    }

    public String getBranchConditionGroupId() 
    {
        return branchConditionGroupId;
    }
    public void setObjectCategory(String objectCategory) 
    {
        this.objectCategory = objectCategory;
    }

    public String getObjectCategory() 
    {
        return objectCategory;
    }
    public void setJudgeConditionDictCode(String judgeConditionDictCode) 
    {
        this.judgeConditionDictCode = judgeConditionDictCode;
    }

    public String getJudgeConditionDictCode() 
    {
        return judgeConditionDictCode;
    }
    public void setContractValue(String contractValue) 
    {
        this.contractValue = contractValue;
    }

    public String getContractValue() 
    {
        return contractValue;
    }
    public void setProcessBranchId(Long processBranchId) 
    {
        this.processBranchId = processBranchId;
    }

    public Long getProcessBranchId() 
    {
        return processBranchId;
    }
    public void setBranchInterfaceId(Long branchInterfaceId) 
    {
        this.branchInterfaceId = branchInterfaceId;
    }

    public Long getBranchInterfaceId() 
    {
        return branchInterfaceId;
    }
    public void setSortNum(Long sortNum) 
    {
        this.sortNum = sortNum;
    }

    public Long getSortNum() 
    {
        return sortNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("branchConditionDetailId", getBranchConditionDetailId())
            .append("branchConditionId", getBranchConditionId())
            .append("objectId", getObjectId())
            .append("objectType", getObjectType())
            .append("branchConditionDetailDictCode", getBranchConditionDetailDictCode())
            .append("branchConditionGroupId", getBranchConditionGroupId())
            .append("objectCategory", getObjectCategory())
            .append("judgeConditionDictCode", getJudgeConditionDictCode())
            .append("contractValue", getContractValue())
            .append("processBranchId", getProcessBranchId())
            .append("branchInterfaceId", getBranchInterfaceId())
            .append("sortNum", getSortNum())
            .toString();
    }
}
